<template>
	<view class="commentInfo">
		<image class="avatar" :src="info.avatar" mode="aspectFill"></image>
		<view class="description">
			<view class="username">{{info.username}}</view>
			<view class="publicTime">
				<uni-dateformat :date="info.publicTime" format="yyyy年MM月dd日 hh:mm:ss"></uni-dateformat>
			</view>
		</view>
	</view>
</template>

<script setup>
	defineProps(['info'])
</script>

<style lang="scss" scoped>
	.commentInfo {
		display: flex;
	}

	.avatar {
		width: 30px;
		height: 30px;
		border-radius: 50%;
		margin-right: 5px;
	}

	.description {}

	.username {
		font-size: 14px;
		font-weight: bold;
		color: #2d2c2c;
	}

	.publicTime {
		font-size: 12px;
		color: #737373;
	}
</style>